<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"          			
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"  
      >
    <ui:composition template="TaskProLayout.xhtml">
        <ui:define name="content">  
            <div class="Post">
                <h:form  id="profilDetailForm">   
                    <h:panelGrid columns="2">
                        <h:outputText value="Login" />
                        <h:outputText value="#{loginBean.loggedUser.login}" />
                        <h:outputText value="Name" />
                        <p:inputText id="name" value="#{loginBean.loggedUser.name}"></p:inputText>
                        <h:outputText value="Surname" />
                        <p:inputText id="surname" value="#{loginBean.loggedUser.surname}"></p:inputText>
                        <h:outputText value="E-mail" />
                        <p:inputText id="email" value="#{loginBean.loggedUser.email}"></p:inputText>
                        <h:outputLabel for="pwd1" value="New password" />  
                        <p:password id="pwd1" value="#{loginBean.password}" feedback="true" match="pwd2" label="Password 1"/>  
                        <h:outputLabel for="pwd2" value="Retype password" />  
                        <p:password id="pwd2" value="#{loginBean.password}" feedback="false" label="Password retype" />  
                        <p:commandButton id="confirmButton" value="Modify" action="#{loginBean.modifyLoggedUser}" ajax="true"></p:commandButton>
                    </h:panelGrid>
                </h:form>   
            </div>
        </ui:define>
    </ui:composition>
</html>